import 'package:flutter/material.dart';

class stackPage extends StatelessWidget {
  const stackPage({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(

      home:

      Stack(
        alignment: Alignment.center,
        children: [
          //大盒子
          Container(
            height: 300,
            width: 300,
            color: Colors.deepPurple,
          ),
          //中盒子
          Container(
            height: 200,
            width: 200,
            color: Colors.deepPurple[400],
          ),
          // 小盒子
          Container(
            height: 100,
            width: 100,
            color: Colors.deepPurple[200],
          ),
        ],
      ),
    );
  }
}
